get Or Throw
inline fun <T> Array<out T>.getOrThrow(index: Int, message: Array<out T>.(Int) -> String): T(source)
An alternative to the Array.get function that throws an exception with the provided message.
An alternative to the List.get function that throws an exception with the provided message.
An alternative to the Map.get function that throws an exception with the provided message.